﻿
//----------------------------------------------------------------------
// <copyright file="IServiceBook.cs" company="O-RID">
// Copyright (c)2010 O-RID Co.,Ltd.
// </copyright>
// <author>lidawei</author>
// <summary> 
// 作成日： 2011/10/21
// </summary>
//----------------------------------------------------------------------

namespace Orid.Management.SOHO.Book.Service
{
    using System;
    using System.Collections.Generic;
    using System.ServiceModel;


    // 注意: 如果更改此处的接口名称 "IServiceBook"，也必须更新 Web.config 中对 "IServiceBook" 的引用。
    [ServiceContract  (Namespace = "http://Orid.Management.SOHO.Book.Service")]
    public interface IServiceBook
    {
        [OperationContract]
        DateTime GetCurrentTime();

        [OperationContract]
        DateTime GetBookTime();

        [OperationContract]
        bool AddSchedule(string operatorID, DateTime dateFrom, DateTime dateTo);

        [OperationContract]
        bool RemoveSchedule(string operatorID, DateTime dateFrom, DateTime dateTo);

        [OperationContract]
        List<BookSetting>   GetCurrentBookSetting();

        [OperationContract(Name = "GetBookListTwoArgs")]
        List<BookRecord> GetBookList(string operatorID, DateTime bookDate);

        [OperationContract(Name = "GetBookListThreeArgs")]
        List<BookRecord> GetBookList(string operatorID, DateTime bookDateFrom,DateTime bookDateTo);

        [OperationContract]
        BookRecord GetNextWorkTime(string operatorID, DateTime bookDate);

        [OperationContract]
        List<DateTime> GetBookDays(string operatorID, DateTime dateFrom, DateTime dateTo);

        [OperationContract]
        void Info(string msg);

        [OperationContract]
        void Error(string msg);

        [OperationContract]
        bool AddLoginAction(string operatorID);

        [OperationContract]
        bool AddLogoutAction(string operatorID);
    }

    
}
